#!/usr/bin/env jruby
# -*- coding: us-ascii -*-

require 'test/unit'
dir = File.dirname(__FILE__)
require File.join(dir, '..', '..', 'lib', 'monkey', 'fixnum')

########################################

class TestFixnumMAXMIN < Test::Unit::TestCase
  def test_should_have_correct_value_for_4_bytes
    if 1.size == 4
      assert_equal  2147483647, Fixnum::MAX, 'max'
      assert_equal -2147483648, Fixnum::MIN, 'min'
    else
      assert true
    end
  end
  
  def test_should_be_correct_byte_size
    assert_equal 1.size, Fixnum::MAX.size, 'max'
    assert_equal 1.size, Fixnum::MIN.size, 'min'
  end
end

########################################

